package com.ww.springboot.boot.baseTest.design.factory.simple;

import com.ww.springboot.boot.baseTest.design.factory.simple.factory.PersonFactory;

/**
 * 描述：
 * 简单工厂只是让客户端的代码更简单 将实现封装在工厂中 将改动集中到工厂中
 *
 * @author 🧑 ‍wanwei
 * @since 2022-03-04 11:16
 */
public class Run {

    public static void main(String[] args) {
        Person man = PersonFactory.createPerson("man");
        Person woman = PersonFactory.createPerson("woman");

        man.say();
        woman.say();
    }
}
